package nb.yan.controller.impl;

import nb.yan.controller.OrderController;
import nb.yan.entity.Order;
import nb.yan.service.OrderService;

public class OrderControllerImpl implements OrderController {

	private OrderService orderService;

	public OrderControllerImpl(OrderService orderService) {
		super();
		this.orderService = orderService;
	}

	@Override
	public Order order(Order order) {
		return this.orderService.order(order);
	}

	@Override
	public Order[] list() {
		return this.orderService.orderList();
	}

	@Override
	public boolean check(int orderId) {
		return this.orderService.checkOrder(orderId);
	}

	@Override
	public boolean delete(int orderId) {
		return this.orderService.deleteOrder(orderId);
	}
	
}
